import request from '@/utils/request'

// 查询采购价列表
export function listPurprice(query) {
  return request({
    url: '/settlementCenter/basedata/purprice/list',
    method: 'get',
    params: query
  })
}

// 查询采购价详细
export function getPurprice(id) {
  return request({
    url: '/settlementCenter/basedata/purprice/' + id,
    method: 'get'
  })
}

// 新增采购价
export function addPurprice(data) {
  return request({
    url: '/settlementCenter/basedata/purprice',
    method: 'post',
    data: data
  })
}

// 修改采购价
export function updatePurprice(data) {
  return request({
    url: '/settlementCenter/basedata/purprice',
    method: 'put',
    data: data
  })
}

// 删除采购价
export function delPurprice(id) {
  return request({
    url: '/settlementCenter/basedata/purprice/' + id,
    method: 'delete'
  })
}
